#include<stdio.h>

int main(void)
{
	int num1,num2;
	
	scanf("%d%d",&num1,&num2);
	
	printf("%d %d %d %d %d",num1+num2,num1-num2,num1*num2,num1/num2,num1%num2);
	
	return 0;
}
